import request from '@/utils/request'
import apis from '@/api'

export function getComplaintList (parameter) {
  return request({
    url: apis.ComplaintList,
    method: 'get',
    params: parameter
  })
}

export function getAddComp () {
  return request({
    url: apis.AddCompliant,
    method: 'get'
  })
}

export function postAddComp (data) {
  return request({
    url: apis.AddCompliant,
    method: 'post',
    data: data
  })
}
